@layout("/common/_container.html"){
<link href="https://pynnn.oss-cn-hangzhou.aliyuncs.com/revisit.css?v=20200628" rel="stylesheet">
<div class="ibox float-e-margins ">
    <div class="ibox-content" style="padding: 0;">
        <div style="display: none">
            <input type="hidden" id="id" value="">
            <input type="hidden" id="tcNameValue" value="">
            <input type="hidden" id="outpatientNameValue" value="">
            <input type="hidden" id="reach" value="">
            <input type="hidden" id="menuName" value="市场-回访统计">
        </div>
        <div class="numStatistics">
            <div><div onclick="RevisitStatisticsTable.today()">今日</div></div>
            <div onclick="RevisitStatisticsTable.yesterday()">昨日</div>
            <div onclick="RevisitStatisticsTable.thisWeek()">本周</div>
            <div onclick="RevisitStatisticsTable.thisMonth()">本月</div>
            <div onclick="RevisitStatisticsTable.lastMonth()">同比</div>
            <div onclick="displayHiding('revisitStatisticsTable')" id="zoom">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/open.png" alt="">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/shrink.png" alt="" style="display: none">
                <span>条件展开</span>
            </div>
        </div>
        <div class="divFlex" style="display: none">
            <div class="flex_one">
                <div>片区</div>
                <div>门诊</div>
                <div>访问病种</div>
                <div>预约病种</div>
                <div>回访人</div>
                <div style="flex: 2">建档时间</div>
            </div>
            <div class="flex_two">
                <div><select id="area" name="area" title="请选择" class="selectpicker" multiple data-actions-box="true" onchange="RevisitStatisticsTable.getData()">
                    @for(str in arealist){
                    <option value="${str.areaAbbreviation}">${str.area}</option>
                    @}
                </select></div>
                <div><select id="outpatientName" title="请选择" name="outpatientName" class="selectpicker" multiple data-actions-box="true" onchange="RevisitStatisticsTable.search()">
                    @for(str in outpatientManagementList){
                    <option value="${str.simplename}">${str.simplename}</option>
                    @}
                </select></div>
                <div><select id="accessDisease" name="accessDisease" onchange="RevisitStatisticsTable.search()">
                    <option value="">全部</option>
                    <option value="种植">种植</option>
                    <option value="正畸">正畸</option>
                    <option value="修复">修复</option>
                    <option value="美白">美白</option>
                    <option value="牙周">牙周</option>
                    <option value="医院类">医院类</option>
                    <option value="拔牙智齿">拔牙智齿</option>
                    <option value="洗牙洁牙">洗牙洁牙</option>
                    <option value="儿童齿科">儿童齿科</option>
                </select></div>
                <div><select id="appointmentPayService" name="appointmentPayService" onchange="RevisitStatisticsTable.search()">
                    <option value="">全部</option>
                    @for(str in departmentList){
                    <option value="${str.department}">${str.department}</option>
                    @}
                </select></div>
                <div>
                    <input type="text" id="follower" style="width: 60%" oninput="RevisitStatisticsTable.search()">
                    <a href="javascript:;" style="color: #2eadd0;" onclick="RevisitStatisticsTable.getFollower()">选择</a>
                </div>
                <div>
                    <input type="text" id="startFilingTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                </div>
                <div>
                    <input type="text" id="endFilingTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                </div>
            </div>
        </div>
        <div class="timeButton">
            <div class="timeBox">
                <div>
                    <span>回访时间</span>
                    <input type="text" autocomplete="off" id="startRevisitTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                    <span>-</span>
                    <input type="text" autocomplete="off" id="endRevisitTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD 23:59:59',choose:checkDate})">
                </div>
                <div></div>
            </div>
            <div class="buttonBox">
                <div>
                    <button type="button" class="btn" onclick="RevisitStatisticsTable.resetSearch()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/empty.png"><span>重置</span></button>
                    <button type="button" class="btn" onclick="screenTable()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>显示列</span></button>
                    @if(shiro.hasPermission("/reservation/export")){
                    <!--<button type="button" class="btn" onclick="$('#revisitStatisticsTable').tableExport({ type: 'excel', escape: 'false' })"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/export.png"><span>导出</span></button>-->
                    <button type="button" class="btn" onclick="RevisitStatisticsTable.downLoad()"><span>导出</span></button>
                    @}
                </div>
            </div>
        </div>
        <div class="tableBox"><#table id="revisitStatisticsTable"/></div>
    </div>
</div>
<script src="${ctxPath}/static/modular/marketing/reservations/revisit_statistics.js?v=20200628"></script>
<script src="${ctxPath}/static/modular/marketing/reservations/marketSearchContent.js?v=20200628"></script>
@}